home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group93a.txt / 000056_icon-group-sender _Sun Jan 17 14:01:24 1993.msg < prev    next >
Internet Message Format  |  1993-04-21  |  6KB

  1. Received: by cheltenham.cs.arizona.edu; Sat, 30 Jan 1993 20:41:40 MST
  2. Path: ucbvax!dog.ee.lbl.gov!overload.lbl.gov!agate!spool.mu.edu!sdd.hp.com!caen!uunet!mercury.hsi.com!mlfarm!cs.arizona.edu!icon-group
  3. From: TENAGLIA@mis.mcw.edu (Chris Tenaglia - 257-8765)
  4. Newsgroups: comp.lang.icon
  5. Subject: RE:entab/detab
  6. Message-Id: <01GTM84WCM828WWTTE@mis.mcw.edu>
  7. Date: 17 Jan 93 14:01:24 GMT
  8. Organization: Medical College of Wisconsin (Milwaukee, WI)
  9. Lines: 104
  10. Apparently-To: icon-group@cs.arizona.edu
  11. Status: R
  12. Errors-To: icon-group-errors@cs.arizona.edu
  13.  
  14. > From:    IN%"alex@laguna.Metaphor.COM" 16-JAN-1993 21:57:19.34
  15. > To:    IN%"icon-group@cs.arizona.edu"
  16. > Subj:    RE: entab/detab
  17.  
  18. > I use entab and detab quite a bit -- often the text I want to process
  19. > is entabbed, and often I want to entab my output.
  20. Kind of like my reason but in reverse. I guess some people have a use
  21. for tabs.
  22.  
  23. > Interestingly, those routines once *were* library routines (in a
  24. > slightly different form), and made it into the language somewhere
  25. > around version 6.  Certainly they *could* be library routines, but this
  26. > sort of operations is way faster as a primitive than if it were written
  27. > in Icon.  I personally don't feel that it clutters up the language.
  28. > It would be interesting to create a questionaire to determine which
  29. > features are rarely used.  E.g. how often do you use string invocation,
  30. > or PDCOs, or run-time error conversion to failure?
  31. I think you'd find a pretty even mixture of all kinds overall. I never
  32. use entab() or coexpressions. Someone else might understand coexpressions
  33. and think they're the greatest thing since the byte.
  34.  
  35. > I think an interesting (significant) project would be to create a
  36. > smaller but more extensible Icon.  The "real" Icon would just be a
  37. > nucleus, and much of the functionality could be added using new
  38. > yet-to-be-conceived extensibility features.  The extensibility
  39. > cabilities would include
  40.  
  41. >     (a) "easy" addition of new primitives written in C (whatever
  42. >         that means -- maybe without relinking the interpreter, or
  43. >         at least with changes limited to one module.  Maybe dynamic
  44. >         linking -- that seems to be a trend and is implemented in
  45. >         popular platforms now.)
  46. Many icon programmers are not computer science majors. Those of us whose
  47. skill in C is little to none, need/use those added features the most, and
  48. have the least chance of rolling our own.
  49.  
  50. Variant translators and personal interpreters sound cool in conversation,
  51. but many of us don't have a clue as to what they can do for us.
  52.  
  53. >     (b) addition of new facilities written in Icon without creating
  54. >         name conflicts.
  55. >     (c) overloading of existing functions (like copy()) and
  56. >         operators to handle new data types.
  57. More vendors these days are segmenting their product lines. They tell you
  58. this is to make the product more 'modular'. They tell you that you should
  59. not have to pay for features you don't use, and this modularity will save
  60. you all kinds of money because of that. (Where would unix be if we had to
  61. buy C and tcp/ip and each utility as a separate line item?)
  62.  
  63. What happens is the stripped down core gets sold at the regular price,
  64. every little value added feature becomes a line item. Now ICON is not
  65. a profit driven item like C++ or WordPerfect or Netware. The part that
  66. is unpleasant here is that code won't be as portable unless you ship
  67. all your icon language enhancements with them, and maybe your enhancements
  68. may not like my enhancements. By keeping what some consider a lot of
  69. language bloating in a central version, icon can maintain maximum code
  70. portability. And I'll let hardware improvements make up for the added
  71. memory or speed requirements.
  72.  
  73. > Has anyone else out there had a similar fantasy?  Then things like
  74. > entab, X-stuff, and maybe even string scanning could be "extensions".
  75.  
  76. I'd like to see a few things added to icon. Here's my wishlist:
  77.  
  78.           1) every to by
  79.              First for these to work with reals, and maybe someday
  80.              with any type. &next &prior &first &last to be used
  81.              also for referencing when numbers may not be meaningful.
  82.              This may also contribute toward true scanning features
  83.              for lists, sets, tables, and files.
  84.              
  85.           2) User defined operator $ ?
  86.              Maybe just the $ character or maybe $+. Maybe this is
  87.              superfluous because procedures can do it all to. But,
  88.              I think it's no more pathological than string invocation
  89.              which already exists.
  90.  
  91.           3) Two way pipes
  92.              I know this one is probably tricky. I'd like to open a process
  93.              for read and write, then I'd only need one file handle
  94.              for a piping dialog. I can also then completely control
  95.              the process IO. If I open a process for write I can't
  96.              directly read its output unless I redirect it to a file
  97.              and read that in separately. This may not always be
  98.              possible.
  99.  
  100.           4) OS independent files
  101.              Since icon is now on VMS, Unix, MAC, DOS, IBM and each has
  102.              a file system syntax for files, directories, and disks, it
  103.              would sure be easier to write totally portable code if the
  104.              icon language had a universal file system syntax. Then the
  105.              backend interpreter/compiler would handle mapping this
  106.              syntax to the file system of the target OS.
  107.   
  108. > -- Bob Alexander
  109. > Metaphor Computer Systems     (415) 966-0751      alex@metaphor.com
  110. > ====^=== Mountain View, CA  ...{uunet}!{decwrl,apple}!metaphor!alex
  111.  
  112. Chris Tenaglia (System Manager) |  "The past explained,     
  113. Medical College of Wisconsin    |   the future fortold, 
  114. 8701 W. Watertown Plank Rd.     |   the present largely appologized for."
  115. Milwaukee, WI 53226             |   Organon to The Doctor
  116. (414)257-8765                   |     
  117. tenaglia@mis.mcw.edu
  118.